package framework.impl;

import framework.api.KnowledgeBuilder;
import framework.api.KnowledgeBuilderConfiguration;
import framework.api.KnowledgeBuilderFactoryService;

public class KnowledgeBuilderFactory {

    private static class FactoryServiceHolder {
        private static final KnowledgeBuilderFactoryService factoryService = ServiceRegistryImpl.getInstance().get( KnowledgeBuilderFactoryService.class );
    }

    public static KnowledgeBuilder newKnowledgeBuilder(KnowledgeBuilderConfiguration conf) {
        return FactoryServiceHolder.factoryService.newKnowledgeBuilder( conf );
    }
}
